连接成功消息

变化。在以下情况下会生成此消息:

  1. DApp请求连接,用户在弹窗确认连接
  2. 用户连接到网站

规格

例子复制

window.addEventListener('message', function (e) {
  if (e.data.message && e.data.message.action == "connect") {
    // handler logic
    console.log('got connect event', e.data)
  }
})




Would you like to share your thoughts?

Your email address will not be published. Required fields are marked *